
include("shared.lua");

/*------------------------------------------------------
	This creates the VGUI for the Menu
*/------------------------------------------------------

function Menu()


  frame = vgui.Create( "DFrame" ) 
 frame:SetPos( 100, ScrH() / 2 )
 frame:SetSize( 250, 200 )
 frame:SetTitle( "Ancient Mainframe" )
 frame:SetVisible( true ) 
 frame:SetDraggable( false ) 
 frame:ShowCloseButton( true ) 
 frame:MakePopup() 
 
 grav = vgui.Create( "DButton", frame ) 
 grav:SetPos( 30, 30 )
 grav:SetSize( 100, 50 ) 
 grav:SetText( "Invert Gravity" ) 
 grav.DoClick = function()
 
     RunConsoleCommand( "sv_gravity", -200 )
 
 end 
 
 gmod_admin_cleanup = vgui.Create( "DButton", frame ) 
 gmod_admin_cleanup:SetPos( 30, 85 ) 
 gmod_admin_cleanup:SetSize( 100, 50 ) 
 gmod_admin_cleanup:SetText( "Remove All" ) 
 gmod_admin_cleanup.DoClick = function() 
 
     RunConsoleCommand( "gmod_admin_cleanup" ) 
 
 end 
  
 health = vgui.Create( "DButton", frame ) 
 health:SetPos( 135, 30 )
 health:SetSize( 100, 50 ) 
 health:SetText( "Restore Health" ) 
 health.DoClick = function()
 
	RunConsoleCommand( "restore_health" )
 
 end 
 
 speedup = vgui.Create( "DButton", frame ) 
 speedup:SetPos( 135, 85 ) 
 speedup:SetSize( 100, 50 ) 
 speedup:SetText( "Speed Up" ) 
 speedup.DoClick = function()
	 
		RunConsoleCommand( "Speed_Up" )
 end
 
normgrav = vgui.Create( "DButton", frame ) 
normgrav:SetPos( 30, 140 ) 
normgrav:SetSize( 100, 50 ) 
normgrav:SetText( "Restore Gravity" ) 
normgrav.DoClick = function() 
 
	RunConsoleCommand( "sv_gravity", 600 )
end
 health = vgui.Create( "DButton", frame ) 
 health:SetPos( 135, 140 )
 health:SetSize( 100, 50 ) 
 health:SetText( "Slow Down" )
 health.DoClick = function()
 
	RunConsoleCommand( "Speed_Down" )
end
end 
concommand.Add( "ancient_menu", Menu )